home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shs_ambbn.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  77 lines

  1. # Jones 3D Cog Script
  2. #
  3. # shs_AmbBN.cog
  4. #
  5. # Plays a random sound at random intervals with random volume and panning
  6. #
  7. #
  8. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13.        message        entered
  14.     
  15.        # by the gate
  16.     sector      start_BNgate    linkID=1
  17.     sector      stop_BNgate     linkID=0
  18.     # by upper nave
  19.     sector      start_UN          linkID=1
  20.     sector      stop_UN           linkID=0
  21.     # by big door
  22.     sector      start_BNdoor    linkID=1
  23.     sector      stop_BNdoor     linkID=0
  24.     # by lil nave
  25.     sector      start_LN          linkID=1
  26.     sector      stop_LN           linkID=0
  27.     # under statue
  28.     sector      start_Hall      linkID=1
  29.     sector      stop_Hall       linkID=0
  30.     
  31.     thing        player            local
  32.     thing        soundPos0        nolink
  33.  
  34.     sound        ambient0=shs_waterfall.wav   local
  35.         
  36.     int         looping     local
  37.     
  38.     
  39.  
  40. end
  41.  
  42. # ========================================================================================
  43.  
  44.  
  45. code
  46.  
  47. # ........................................................................................
  48.  
  49. startup:
  50.     player = GetLocalPlayerThing();
  51.     return;
  52.  
  53. # ........................................................................................
  54.  
  55.     entered:
  56.     
  57.         if(GetSenderID() == 1)
  58.         {
  59.             #looping=PlaySoundThing(ambient0, soundPos0, 1.0, 3, 30, 0x045);
  60.         }
  61.         
  62.         if(GetSenderID() == 0)
  63.         {
  64.             Print("amb should stop");
  65.             #StopSound(looping, 1.0);
  66.         }
  67.         
  68.         return;
  69.  
  70. # ========================================================================================
  71.  
  72.             
  73. end
  74.     
  75.     
  76.  
  77.